package com.rui.study.micro.msgcenter.util;

import com.rui.study.commons.model.GlobalStatus;
import lombok.Getter;

@Getter
public enum StatusCode implements GlobalStatus {
    SUCCEED                             ("00000000", "success"),
    SYSTEM_EXCEPTION                    ("msgcenter-99999999", "系统异常"),

    MAIL_SENDING_FAILED                 ("msgcenter-30010001", "邮件发送失败"),

    KEY_MANAGE_NOT_AVAILABLE            ("msgcenter-30020001", "秘钥服务暂时不可用"),

    ;


    private String status;

    private String message;

    StatusCode(String Status, String message) {
        this.status = Status;
        this.message = message;
    }
}
